<?php
App::uses('AppModel', 'Model');
/**
 * Time Model
 *
 */
class Time extends AppModel {
    //public $virtualFields = array('timeBeauty'=> "CONCAT(time_from, '-', time_to)");
    //public $displayField = 'timeBeauty';
    
     public $hasAndBelongsToMany = array(
        'Roster' => array(
            'className' => 'Roster',
            'jointTable' => 'rosters_times',
            'foreignKey' => 'time_id',
            'associationForeignKey' => 'ros_id'
        )
    );

}